import Http from '../../http';

//列表部门列表树
export const getDeptListTree = function() {
    return Http.get('/member/DeptListTree') 
}

export const getList = function(queryModel:any) {
    return Http.get('/member/list',queryModel) 
}

export const getEdit = function(id:number) {
    return Http.get('/member/AddOrEdit',{id:id}) 
}
export const postAdd = function(from:any) {
    return Http.post('/member/Create',from) 
}
export const putEdit = function(from:any) {
    return Http.put('/member/Edit',from) 
}
export const delOne = function(id:number) {
    return Http.delete('/member/Delete',{id:id}) 
}
